const express = require('express');
//创建一个路由表 
const router = express.Router();

router.use('/list',(req,res)=>
    res.send({
        code:1,
        message:'获取列表成功',
        data:[{name:'张三'},{name:'张三1'},{name:'张三2'}]
    })
);

router.use('/info',(req,res)=>
    res.send({
        code:1,
        message:'获取信息成功',
        data:[{name:'张三'},{name:'张三1'},{name:'张三2'}]
    })
);




module.exports = router;